package com.pace.csc.service.impl;

import com.pace.csc.service.PaymentFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.UUID;

@Component
@Slf4j
public class PaymentFeignServiceImpl implements PaymentFeignService {

    @Override
    public String paymentzk() {
        log.error("Fallback2, userId={}", UUID.randomUUID());
        return "user-paymentzk not available2 when query '" + UUID.randomUUID() + "'";
    }

    @Override
    public String paymentFeignTimeout() {
        log.error("paymentFeignTimeout, ErrorId={}", UUID.randomUUID());
        return "user-paymentFeignTimeout not available2 when query '" + UUID.randomUUID() + "'";
    }
}
